﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MulClassLibrary
{
    public class Mul:IOperation.Operation
    {
        private string _name = "*";//类的名称
        private string _numberA, _numberB;//左操作数，右操作数

        public string Name { get => _name; set => _name = value; }
        public string NumberA { get => _numberA; set => _numberA = value; }

        public string NumberB { get => _numberB; set => _numberB = value; }

        public double GetResult()
        {
            return Convert.ToDouble(_numberA) * Convert.ToDouble(_numberB);
        }
    }
}
